package com.meixiang.entity.shopping.result;

import android.text.TextUtils;

import com.meixiang.entity.shopping.CartCouponInfoEntity;

import java.util.List;

/**
 * 重新计算购物车总金额result
 *
 * @author LZRUI
 */
public class CalculateCartPriceResult {

    private String goodsTotalPrice;
    private String couponTotalPrice;
    private List<CartCouponInfoEntity> couponInfoList;

    public CalculateCartPriceResult(String goodsTotalPrice, String couponTotalPrice, List<CartCouponInfoEntity> couponInfoList) {
        this.goodsTotalPrice = goodsTotalPrice;
        this.couponTotalPrice = couponTotalPrice;
        this.couponInfoList = couponInfoList;
    }

    public CalculateCartPriceResult() {
    }

    public String getGoodsTotalPrice() {
        return TextUtils.isEmpty(goodsTotalPrice) ? "0" : goodsTotalPrice;
    }

    public void setGoodsTotalPrice(String goodsTotalPrice) {
        this.goodsTotalPrice = goodsTotalPrice;
    }

    public String getCouponTotalPrice() {
        return TextUtils.isEmpty(couponTotalPrice) ? "0" : couponTotalPrice;
    }

    public void setCouponTotalPrice(String couponTotalPrice) {
        this.couponTotalPrice = couponTotalPrice;
    }

    public List<CartCouponInfoEntity> getCouponInfoList() {
        return couponInfoList;
    }

    public void setCouponInfoList(List<CartCouponInfoEntity> couponInfoList) {
        this.couponInfoList = couponInfoList;
    }
}
